package com.woniuxy02;

import java.text.ParseException;
import java.util.Calendar;
import java.util.Date;

/**
 * @author 作者
 * @create 2025-06-05 10:50
 */
public class Test04 {
    public static void main(String[] args) throws ParseException {
        Calendar cal = Calendar.getInstance();
        for (int i=2000;i<=2010;i++) {
            cal.set(i, 2, 1);
            cal.add(Calendar.DATE, -1);
            System.out.println(cal.get(Calendar.DATE));
        }
    }


}
